﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;

namespace Mengsk.ProxyDelivery.Print.Domain
{
    [Serializable]
    public class PrintTemplateItem
    {
        public PrintTemplateItemTypes Type { get; set; }

        public Guid Id { get; set; }

        public string Title { get; set; }

        public double X { get; set; }

        public double Y { get; set; }

        public double Width { get; set; }

        public double Height { get; set; }

        public string FontName { get; set; }

        public double FontSize { get; set; }

        public string Format { get; set; }

        public string Value { get; set; }

        public string Value1 { get; set; }

        public override bool Equals(object obj)
        {
            var other = obj as PrintTemplateItem;
            if (other == null)
            {
                return false;
            }

            return this.Id == other.Id && this.Type == other.Type;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
